<?php
    if($_REQUEST['products_id']!='')
    {
        $categoryIdArray=explode('_',tep_get_product_path($_REQUEST['products_id']));
    }
    else if (isset($_REQUEST['cPath']) && $_REQUEST['cPath']!='')
    {    
        $categoryIdArray=  explode('_',$_REQUEST['cPath']);
    }
	else
	{
		$categoryIdArray[0]=0;
	}
	
    $left_menu=$bm_categories->get_left_menu($categoryIdArray[0]);
?>
<!--left panel start-->

<div class="leftpanel fl">
  <div>
    <div class="leftpanel-top"></div>
    <div class="leftpanel-mid">
      <div class="leftpanel-innerbox">
        <h2 class="leftpanel-title">
          	<?php
		  		if($bm_categories->category_name!='')
				{
					echo $bm_categories->category_name;
				}
				else
				{
					echo "Swag On Styles";
				}
			?>
        </h2>
        <div class="spacer10"></div>
        <div class="leftpanellist mgl15">
          <ul>
            <?=$left_menu?>
          </ul>
        </div>
        <div class="spacer20"></div>
      </div>
    </div>
    <div class="leftpanel-bottom"></div>
  </div>
  <div class="spacer10"></div>
  <?php
	$bm_reviews = new bm_reviews();
	echo $bm_reviews->execute();
  ?>
  <div class="spacer10"></div>
</div>
<!--left panel end-->